package com.wlb.address.split.domain;

/**
 * 分词中的词条
 * User: xiaotong.dxt
 * Date: 13-8-8
 * Time: 上午10:47
 * To change this template use File | Settings | File Templates.
 */
public class GeoTerm {
    //词条内容
    private String word;
    //属性
    private String prop;
    //词条长度
    private int len;
    //词条所属的数字类型
    private BuildingNo no_type;
     //词条所在的等级
    private int nLevel;

    public GeoTerm(String w,String prop,int len){
    	this.word = w;
    	this.prop = prop;
    	this.len = len;
    	this.no_type = null;
    	this.nLevel = 0;
    }

    public GeoTerm() {

    }

    @Override
    public boolean equals(Object geoTerm) {
        if (!(geoTerm instanceof GeoTerm))
            return false;
        GeoTerm term=(GeoTerm)geoTerm;
        return this.word.equalsIgnoreCase(term.word) && this.prop.equals(term.prop);

    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public String getProp() {
        return prop;
    }

    public void setProp(String prop) {
        this.prop = prop;
    }

    public int getLen() {
        return len;
    }

    public void setLen(int len) {
        this.len = len;
    }

    public BuildingNo getNo_type() {
        return no_type;
    }

    public void setNo_type(BuildingNo no_type) {
        this.no_type = no_type;
    }

    public int getnLevel() {
        return nLevel;
    }

    public void setnLevel(int nLevel) {
        this.nLevel = nLevel;
    }
}
